#ifndef __CMD__World__HEADER_FILE__
#define __CMD__World__HEADER_FILE__

#include "world.h"

///Command interface class to \a World class
///@note this pointer is actually a pointer to the \a World object, this class is just an interface
struct World::cmd_World
{
	void set_gamestate( uchar gst, uint timeout )
	{
		dynarray<uchar>& fcb = ((rsp_base*)this)->fcb();
		uchar* p=fcb.add(1+sizeof(gst)+sizeof(timeout));
		*p++ = 0;

		{ *(uchar*)p = gst;		p += sizeof(gst); }
		{ *(uint*)p = timeout;		p += sizeof(timeout); }
	}

};

#endif //__CMD__World__HEADER_FILE__
